package com.person.ntv.service.sys;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import com.github.pagehelper.Page;
import com.person.common.PageParams;
import com.person.exception.ServiceException;
import com.person.ntv.entity.sys.SysResource;
import com.person.ntv.service.base.IBaseService;

public interface SysResourceService extends IBaseService<SysResource>{
	
	public Page<SysResource> getSysResources(PageParams pp) throws ServiceException;
	
	public List<Map<String,Object>>getMenuTree(Map<String,String> params) throws ServiceException;
	
	public int deleteByPrimaryKeys(BigDecimal []ids) throws ServiceException;
	
    public int validateResName(String resName,String id)throws ServiceException;
	
    public int validateResCode(String resCode,String id)throws ServiceException;
    
    public List<Map<String, Object>> getMenuTreeByRole(String roleIds) throws ServiceException;
	
	public List<Map<String, Object>> getPageTreeByRole(String roleIds) throws ServiceException;
	
	public int updateProvision(String[]ids,String roleId,String type)throws ServiceException;
}
